﻿using System.Linq;
using Crowler.Dispatcher.BusinessComponents;
using Crowler.Model.Dispetcher.Domain;
using Crowler.TestBase;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Crawler.Dispatcher.DataAccess.Test
{
    [TestClass]
    public class DiscoverableRepositoryShould:DaoTestBaseClass
    {
        [TestMethod]
        public void CanGenerateSchema()
        {

            Session.Save(new DiscoverableEntry ());
            Session.Flush();

            var result = Session.CreateQuery("from DiscoverableEntry De where De.Category='gomno'").List<IDiscoverableEntry>()
                .FirstOrDefault();
            Assert.AreEqual(false,false);
        }


        public override void TestCleanup()
        {

        }

        public override void TestInitialize()
        {

        }
    }
}
